package com.gxp.pojo;

import java.io.Serializable;
import java.util.Date;

import com.gxp.util.common.GXPConstant;
public class Game implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 9081071983266938885L;

	private Integer gameId;

    private Integer typeId;

    private String name;

    private String keywords;

    private String company;

    private String url;

    private Date startDt;

    private String logoUrl;

    private String downloadMethod;

    private String cost;

    private Integer popularity;

    private String produceMethod;

    private Integer feasibility;

    private Integer status;
    
    private String typeStr;
    
    

    public String getTypeStr() {
		return typeStr;
	}

	public void setTypeStr(String typeStr) {
		this.typeStr = typeStr;
	}

	public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords == null ? null : keywords.trim();
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company == null ? null : company.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Date getStartDt() {
        return startDt;
    }
    
    public String getStartDtStr() {
    	if (startDt == null) {
    		return "";
    	}
        return GXPConstant.TIMEFORMAT.format(startDt);
    }

    public void setStartDt(Date startDt) {
        this.startDt = startDt;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl == null ? null : logoUrl.trim();
    }

    public String getDownloadMethod() {
        return downloadMethod;
    }

    public void setDownloadMethod(String downloadMethod) {
        this.downloadMethod = downloadMethod == null ? null : downloadMethod.trim();
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost == null ? null : cost.trim();
    }

    public Integer getPopularity() {
        return popularity;
    }

    public void setPopularity(Integer popularity) {
        this.popularity = popularity;
    }

    public String getProduceMethod() {
        return produceMethod;
    }

    public void setProduceMethod(String produceMethod) {
        this.produceMethod = produceMethod == null ? null : produceMethod.trim();
    }

    public Integer getFeasibility() {
        return feasibility;
    }

    public void setFeasibility(Integer feasibility) {
        this.feasibility = feasibility;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}